package global

import ut "github.com/go-playground/universal-translator"

// 配置文件的映射结构
//
//	type SeverConfig struct {
//		ServiceName string `json:"serverName"`
//		Jsk         string `json:"JWTSigningKey"`
//		Rpc         string `json:"rcpServer"`
//	}
type SeverConfig struct {
	ServiceName string `mapstructure:"serverName"`
	Jsk         string `mapstructure:"JWTSigningKey"`
	Rpc         string `mapstructure:"rcpServer"`
}

var (
	ApiServer = &SeverConfig{}
	Trans     ut.Translator
)

type User struct {
	Name     string `validate:"required"`
	Password string `validate:"required,min=6"`
	Email    string `validate:"required,email"`
	Mobile   string `validate:"required,mobile"`
}
